package os.t4;

public class Consume extends Thread{
    Resources res;

    public Consume(Resources res) {
        this.res = res;
    }

    @Override
    public void run() {
        try {
            res.consume();
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
    }
}
